package com.wpf.beans;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.http.HttpMethod;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

import java.util.Map;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MethodInfo {

    private String url;//请求参数
    private HttpMethod method;//请求方式
    private Map<String,Object> params;//请求参数
    private Mono body;//请求body
    private Class<?> bodyType;//请求body中的类型（@RequestBody）
    private boolean returnFlux;//返回类型是不是Flux
    private Class<?> returnElementType;//返回对象类型

}
